package walkera.cn.bean;

import android.app.Application;
import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;
import com.tencent.mmkv.MMKV;
import com.wk.reader.BuildConfig;
import com.wk.reader.R;

import org.xutils.x;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobConfig;

public class WkApplication extends Application {
    public static final boolean isDebug =  true ;

    @Override
    public void onCreate() {
        super.onCreate();

        //Bmob.resetDomain("http://aivin66android.waityousell.com/8/");
        Bmob.resetDomain("https://open3.bmob.cn/8/");
        BmobConfig config =new BmobConfig.Builder(this)
        .setApplicationId("8cc025c3100938e82752321c6513d109")
        .setConnectTimeout(6) //超时时间
        .build();
        Bmob.initialize(config);


        MMKV.initialize(this);

        x.Ext.init(this);
        if(isDebug){
            x.Ext.setDebug(false);
        }

        if(isDebug){
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(this);
    }
}
